//
//  ViewController.m
//  Test
//
//  Created by LiJonius on 16/1/5.
//  Copyright © 2016年 LiJonius. All rights reserved.
//

#import "ViewController.h"
#import "BaseRequest.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UITextField *username;
@property (weak, nonatomic) IBOutlet UITextField *password;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)loginAction:(id)sender {
    NSDictionary*dic=@{@"username":self.username.text,
                       @"password":self.password.text
                       };
    [[BaseRequest shareCCRequest] loadDatWithUrl:@"url" andParameters:dic andCallBackSuccess:^(id obj) {
        
    } andCallBaceFaild:^(id obj) {
        
    }];
}
- (IBAction)registerAction:(id)sender {
    NSDictionary*dic=@{@"username":self.username.text,
                       @"password":self.password.text
                       };
    [[BaseRequest shareCCRequest] loadDatWithUrl:@"url" andParameters:dic andCallBackSuccess:^(id obj) {
        
    } andCallBaceFaild:^(id obj) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
